import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    name: 'Index',
    component: () => import('../views/index')
  },
  {
    path: '/01',
    name: 'about',
    component: () => import('../views/01/index')
  },
  {
    path: '/02',
    name: 'about',
    component: () => import('../views/02/index')
  },
  {
    path: '/03',
    name: 'about',
    component: () => import('../views/03/index')
  },
  {
    path: '/04',
    name: 'about',
    component: () => import('../views/04/home'),
    redirect:"/04/page1",
    children:[
      {
        path: '/04/page1',
        name: 'about',
        component: () => import('../views/04/page1'),
      },
      {
        path: '/04/page2',
        name: 'about',
        component: () => import('../views/04/page2'),
      },{
        path: '/04/page3',
        name: 'about',
        component: () => import('../views/04/page3'),
      }
    ]
  },{
    path: '/05/page1',
    name: 'about',
    component: () => import('../views/05/page1')  
  },{
    path: '/05/page2',
    name: 'about',
    component: () => import('../views/05/page2') 
  },{
    path: '/06',
    name: 'about',
    component: () => import('../views/06/index') 
  },{
    path: '/07',
    name: 'about',
    component: () => import('../views/07/index') 
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
